﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TempEquipmentDetailEdit.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.TempEquipment.TempEquipmentDetailEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Expires" content="0" /> 
    <meta http-equiv="Cache-Control" content="no-cache" /> 
    <meta http-equiv="Pragma" content="no-cache" />
    <title></title>
    <base target="_self" />
    <link rel="Stylesheet" type="text/css" href="../Styles/Style.css" />
    <style type="text/css">
        .style1
        {
            width: 100px;
            padding: 0px 10px 0px 10px;
            background-color: #F5F5F5;
            text-align: right;
            height: 25px;
        }
        .style2
        {
            width: 5px;
            background-color: Pink;
            height: 25px;
        }
        .style3
        {
            padding: 5px 10px 5px 10px;
            background-color: #F5F5F5;
            height: 25px;
        }
    </style>
    <script type="text/javascript">
        function showPage() {
            var retValue = window.showModalDialog(encodeURI("SelectItemCode.aspx"), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                var retValues = retValue.split('|');
                document.getElementById('<%=lblItemCode.ClientID%>').value = retValues[0];
                document.getElementById('<%=hidItemCode.ClientID%>').value = retValues[0];
                document.getElementById('<%=lbl_Model.ClientID%>').value = retValues[1];
                document.getElementById('<%=hidItemName.ClientID%>').value = retValues[1];
                document.getElementById('<%=lbl_Unit.ClientID%>').value = retValues[2];
                document.getElementById('<%=hidItemUnit.ClientID%>').value = retValues[2];              
            }               
        }
    </script>  
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <br />
        <table id="table" border="0" cellspacing="1" cellpadding="1" bgcolor="#FFFFFF">
        <tr>
          <td nowrap="nowrap" class="style1">器材名称：</td>
          <td class="style2"></td>
          <td class="style3">
                <asp:TextBox ID="lblItemCode" runat="server" ReadOnly="true"></asp:TextBox>
                <input id="Button1" type="button" value="选择" onclick="showPage()" />
                <asp:HiddenField ID="hidItemCode" runat="server" />
            </td>
          </tr>
        <tr>
            <td width="80" nowrap="nowrap" class="td1">型号规格：</td>
            <td width="3" class="td4"></td>
            <td width="279" class="td3">
                <asp:TextBox ID="lbl_Model" runat="server" ReadOnly="true"></asp:TextBox>
                <asp:HiddenField ID="hidItemName" runat="server" />
            </td>
          </tr>
        <tr>
            <td nowrap="nowrap" class="td1">单位：</td>
            <td class="td4"></td>
            <td class="td3">
                <asp:TextBox ID="lbl_Unit" runat="server" ReadOnly="true"></asp:TextBox>
                <asp:HiddenField ID="hidItemUnit" runat="server" />
            </td>           
        </tr>
           <tr>
            <td nowrap="nowrap" class="td1">数量：</td>
            <td class="td2"></td>
            <td class="td3">
                <asp:TextBox ID="txt_Amount" runat="server" Width="98%"></asp:TextBox>
        
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txt_Amount" Display="Dynamic" ErrorMessage="必需填写" 
                    Font-Size="12px" ForeColor="#FF3300"></asp:RequiredFieldValidator>
        
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txt_Amount" Display="Dynamic" Font-Names="Verdana" 
                    Font-Size="12px" ForeColor="Red" ValidationExpression="^[1-9][0-9]*$">必须是数字</asp:RegularExpressionValidator>
               </td>           
        </tr
        <tr>
            <td nowrap="nowrap" class="td1">备注</td>
            <td class="td4"></td>
            <td class="td3">
                <asp:TextBox ID="txt_reMark" runat="server" Width="98%" Rows="4" 
                    TextMode="MultiLine"></asp:TextBox></td>            
        </tr>
        <tr>
            <td class="tdBottom" colspan="3" align="center">                
                <asp:Button ID="btnOK" runat="server" Text="确定" Height="25px" Width="80px" 
                    onclick="btnOK_Click" />
                &nbsp;<asp:Button ID="btn_Back" runat="server" Text="取消" Height="25px" 
                    Width="80px" onclick="btn_Back_Click" CausesValidation="False" />

                   
            &nbsp;
                </td>            
        </tr>     
    </table>
    
    </div>
    </form>
</body>
</html>
